package cn.caojun.org.mapper;

import cn.caojun.auth.domain.Role;
import cn.caojun.basic.mapper.BaseMapper;
import cn.caojun.org.domain.Employee;
import cn.caojun.org.query.EmployeeQuery;
import org.apache.ibatis.annotations.Param;

import java.io.Serializable;
import java.util.List;

public interface EmployeeMapper extends BaseMapper<Employee> {

    Employee loadByUsername(String username);

    List<Role> getRoleTree();

    void deleteEmployeeById(Long employeeId);

    void addEmployeeRole(@Param("employeeId")Long employeeId, @Param("roleId")List<Long> roleId);

    List<String> loadRoleById(Long roleId);
}
